package com.zjtaixue.o2o.exception;

import com.zjtaixue.o2o.enums.ResultEnum;

public class O2OException extends RuntimeException {
    private Integer code;

    public O2OException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());
        this.code=resultEnum.getCode();
    }

    public O2OException(Integer code,String message) {
        super(message);
        this.code = code;
    }
}
